package com.kotlin.user.data.repository

import com.kotlin.base.data.net.RetrofitFactory
import com.kotlin.base.data.protocol.BaseResp
import com.kotlin.user.data.api.UserApi
import rx.Observable
import javax.inject.Inject

/**
 * @author Mr.Wang
 * @version v0.3.6
 * @time 2018/3/7
 * @describe
 */
class UserRepository @Inject constructor(){

    fun register(mobile:String,pwd:String): Observable<BaseResp<String>>{
        return RetrofitFactory.instace.create(UserApi::class.java)
                .register(mobile,pwd)
    }

}